<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSendsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sends', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string("title")->comment("短信标题");
            $table->string("content")->comment("发送信息的内容");
            $table->unsignedBigInteger("admin_id")->comment("发送人");
            $table->string("type")->comment("信息类型");
            $table->string("send_to_id")->comment("发送给谁");
            $table->string("send_to_able")->comment("发送给谁（的类型）");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sends');
    }
}
